#ifndef __GOOGLE_READER_INCLUDE__
#define __GOOGLE_READER_INCLUDE__

#include <vector>

struct Subscription {
	Subscription() { }
	Subscription(const char* pUrl, const char* pTitle, const char* pLast = "");
	int sid;
	cstring object;
	cstring title;
	cstring last;
};

struct Item {
	Item() { }
	Item(const char* pId, const char* pUrl, const char* pTitle, const char* pUpdated, const char* pSummary, bool bRead);
	int cid;
	int sid;
	cstring id;
	cstring url;
	cstring title;
	cstring updated;
	cstring summary;
	bool read;
};

class CGoogleReader : public CGoogleService
{
public:

	CGoogleReader(LPCTSTR pSource);

	bool GetList(std::vector<Subscription>& List);
	bool GetFeed(LPCTSTR pId, std::vector<Item>& Items, LPCTSTR pLast=NULL);
};

#endif
